.container.index-container-01
  .row
    .col-xs-12
      h1
        | Listing categories

      table
        thead
          tr
            th 
              | Name
            th 
              | Status
            th 
              | Parent
            th 
              | User
            th 
              | 
            th 
              | 
            th 
              | 

        tbody
          - @categories.each do |category|
            tr
              td
                = category.m_name
              td
                = category.m_status
              td
                = category.parent_id
              td
                = category.user_id
              td
                = link_to 'Show', category
              td
                = link_to 'Edit', edit_category_path(category)
              td
                = link_to 'Destroy', category, method: :delete, data: { confirm: 'Are you sure?' }

      br

      = link_to 'New Category', new_category_path
